package actions.main.form;

import gui.standard.form.AnalitikaMagacinskeKarticeForm;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;
import javax.swing.KeyStroke;

public class AnalitikaMagacinskeKarticeAction extends AbstractAction {
	private static final long serialVersionUID = 1L;

	public AnalitikaMagacinskeKarticeAction() {
		KeyStroke ctrlMKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_M,
				ActionEvent.CTRL_MASK);
		putValue(ACCELERATOR_KEY, ctrlMKeyStroke);
		putValue(SHORT_DESCRIPTION, "Analitika magacinske kartice");
		putValue(NAME, "Analitika magacinske kartice");
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		AnalitikaMagacinskeKarticeForm form = new AnalitikaMagacinskeKarticeForm();
		form.init();
		form.open();
		form.setVisible(true);
	}
}
